<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <title>数学赋能动画</title>
    <meta name="viewport"
        content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0,viewport-fit=cover" />
    <script src="http://code.jquery.com/jquery-latest.js"></script>
    <style>
        body {
            background: #fff;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            width: 100vw;
            overflow: hidden;
            flex-direction: column;
        }

        #canvas {
            background: #f0513b;
        }

        .f_r_a_c {
            display: flex;
            flex-direction: row;
            justify-content: space-around;
            align-items: center;
        }
    </style>
</head>

<body>
    <div class="f_r_a_c" style="width: 400px;margin-bottom: 10px;">
        <button onclick="drawMusicWave({ a: 50, b: 0.06 })">line1</button>
        <button onclick="drawMusicWave({ a: 40, b: 0.09 })">line2</button>
        <button onclick="drawMusicWave({ a: 30, b: 0.12 })">line3</button>
        <button onclick="drawMusicWave({ a: 20, b: 0.2 })">line4</button>
    </div>
    <canvas id="canvas" width="600" height="600"></canvas>
</body>
<script src="public/js/sin.js"></script>

</html>